package com.xiao.framework.ds.autoconfigure.bean;

import static com.xiao.framework.ds.autoconfigure.bean.MultiDataSourceProperties.MULTI_PROPERTIES_PREFIX;

import java.util.Map;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author <a href="mailto:xiaoquanidea@163.com">hutiquan</a>
 * @since 2019-08-24 10:12
 */
@Data
@ConfigurationProperties(prefix = MULTI_PROPERTIES_PREFIX)
public class MultiDataSourceProperties {

  public static final String MULTI_PROPERTIES_PREFIX = "spring.datasource.multi";

  private String primary;

  private Map<String, DataSourceBean> dataSource;

  private Boolean banner = true;

  private Boolean mybatisReadWriteAutoRouting = false;

}
